Global Index
HTML5 JS API Index > DOM Tutorials & Specs

NonDocumentTypeChildNode

Implemented by Element, CharacterData

The previousElementSibling and nextElementSibling attributes have been removed from DocumentType nodes for compatibility reasons. If these additions are deemed compatible enough in the future, they could be reinstated.

This type groups properties and / or operations together for documentation purposes and does not have an explicit JavaScript representation.

Properties
Element?
nextElementSibling
The nextElementSibling attribute must return the first following sibling that is an element, and null otherwise.
Element?
previousElementSibling
The previousElementSibling attribute must return the first preceding sibling that is an element, and null otherwise.